import request from '@/utils/request'

// 查询套餐菜品关系列表
export function listSetmealDish(query) {
  return request({
    url: '/setmeal/dish/list',
    method: 'get',
    params: query
  })
}

// 查询套餐菜品关系详细
export function getSetmealDish(id) {
  return request({
    url: '/setmeal/dish/' + id,
    method: 'get'
  })
}

// 新增套餐菜品关系
export function addSetmealDish(data) {
  return request({
    url: '/setmeal/dish',
    method: 'post',
    data: data
  })
}

// 修改套餐菜品关系
export function updateSetmealDish(data) {
  return request({
    url: '/setmeal/dish',
    method: 'put',
    data: data
  })
}

// 删除套餐菜品关系
export function delSetmealDish(id) {
  return request({
    url: '/setmeal/dish/' + id,
    method: 'delete'
  })
}
